import React, { FC,useContext } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import { LoadingContext, LoadingTypes } from '@/pages/MyCollection/LoadingComponent/LoadingContex';
export interface IProps extends ICompProps {}
NoData.defaultProps = {} as Partial<IProps>;
function NoData(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('NoData', className);
    const { noDataText } = useContext(LoadingContext);
    return <RootView className={localClassName} style={style}>
        {noDataText}
    </RootView>;
}
export default React.memo(NoData as FC<IProps>);
const RootView = styled(View)`
    &.NoData {
    }
`;
